<html>
<head><meta charset="utf-8"><title>confusing lifetime error · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/confusing.20lifetime.20error.html">confusing lifetime error</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="216660432"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/confusing%20lifetime%20error/near/216660432" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Cameron Steffen <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/confusing.20lifetime.20error.html#216660432">(Nov 13 2020 at 19:28)</a>:</h4>
<p>I found a case where the error message sends the user in circles. Is this a known issue? The error should mention the lifetime associated with <code>Foo</code>. <a href="https://play.rust-lang.org/?version=stable&amp;mode=debug&amp;edition=2018&amp;gist=18c7e5f2d6759033eb01f981b5d07ccb">https://play.rust-lang.org/?version=stable&amp;mode=debug&amp;edition=2018&amp;gist=18c7e5f2d6759033eb01f981b5d07ccb</a></p>



<a name="216707086"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/confusing%20lifetime%20error/near/216707086" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> oliver <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/confusing.20lifetime.20error.html#216707086">(Nov 14 2020 at 05:03)</a>:</h4>
<p>I don't understand what the solution is supposed to be here</p>



<a name="216819680"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/confusing%20lifetime%20error/near/216819680" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Cameron Steffen <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/confusing.20lifetime.20error.html#216819680">(Nov 15 2020 at 23:00)</a>:</h4>
<p>Here, this example is probably more clear.<br>
<a href="https://play.rust-lang.org/?version=stable&amp;mode=debug&amp;edition=2018&amp;gist=d9ed6c63fb78836e1342f24eb0a83a12">https://play.rust-lang.org/?version=stable&amp;mode=debug&amp;edition=2018&amp;gist=d9ed6c63fb78836e1342f24eb0a83a12</a></p>



<a name="216824461"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/confusing%20lifetime%20error/near/216824461" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> oliver <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/confusing.20lifetime.20error.html#216824461">(Nov 16 2020 at 01:15)</a>:</h4>
<p>whatever is going on here is currently an enigma to me <span aria-label="thinking" class="emoji emoji-1f914" role="img" title="thinking">:thinking:</span> and<br>
I don't know if there is a name for when a sequence of error messages <br>
misdirect the user into a loop</p>



<a name="216879656"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/confusing%20lifetime%20error/near/216879656" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Cameron Steffen <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/confusing.20lifetime.20error.html#216879656">(Nov 16 2020 at 14:43)</a>:</h4>
<p>A user-error-compiler-error-infinite-loop? <span aria-label="laughing" class="emoji emoji-1f606" role="img" title="laughing">:laughing:</span> Well after more digging I think there are plenty of open issues around these sorts of errors already so I'll forget it.</p>



<a name="216911064"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/confusing%20lifetime%20error/near/216911064" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> oliver <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/confusing.20lifetime.20error.html#216911064">(Nov 16 2020 at 18:22)</a>:</h4>
<p>I haven't looked into it much, was there any of them that you<br>
found interesting?</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>